<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String basePath = request.getScheme() + "://" + request.getServerName() + ":" 
	+ request.getServerPort() + request.getContextPath() + "/";
%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>  
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑部门</title>
</head>
<body>
<%@ include file="../header.jsp" %>
<c:if test="${dept==null }">
<jsp:forward page="../dept.do?action=editView"></jsp:forward>
</c:if>

<form action="dept.do?action=edit" method="post">
		<h1>编辑部门信息</h1>
		<input type="hidden"name="id"value="${dept.id }"><br>
		部门名<input type="text" name="name" placeholder="请输入部门名"value="${dept.name }"><br>
		办公室<input type="text" name="room" placeholder="请输入办公室"value="${dept.room }"><br>
		电话<input type="text" name="phone" placeholder="请输入电话"value="${dept.phone }"><br>
		邮箱<input type="text" name="email" placeholder="请输入邮箱"value="${dept.email }"><br>
		<input type="submit" value="提交">
		<div style="color: red">${error }</div>
	</form>
</body>
</html>